package com.zhy.sunmi.utils.network;


import com.zhy.sunmi.bean.Coupons;
import com.zhy.sunmi.bean.Goods;
import com.zhy.sunmi.bean.GoodsCate;
import com.zhy.sunmi.bean.SellGoodHistory;
import com.zhy.sunmi.bean.SpStaff;
import com.zhy.sunmi.bean.User;
import com.zhy.sunmi.response.AuthorityResponseModel;

import java.util.List;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;


/**
 * @author zhouhongyang
 */
public interface ApiService {

    /**
     * 获取token
     */
    @FormUrlEncoded
    @POST("authority")
    Observable<BaResponse<AuthorityResponseModel>> getToken(@Field("imei") String str);


    /**
     * 获取Stafff表数据
     */
    @FormUrlEncoded
    @POST("staff/sync")
    Observable<BaResponse<List<SpStaff>>> getSpStaff(@Field("api_token") String str);

    /**
     * 获取Stafff表数据
     */
    @FormUrlEncoded
    @POST("goods/getUsers")
    Observable<BaResponse<List<User>>> getUsers(@Field("api_token") String str);


    /**
     * 获取商品分类表
     */
    @FormUrlEncoded
    @POST("goods/getCategory")
    Observable<BaResponse<List<GoodsCate>>> getGoodsCate(@Field("api_token") String str);


    /**
     * 获取商品信息
     */
    @FormUrlEncoded
    @POST("goods/getGoods")
    Observable<BaResponse<List<Goods>>> getGoods(@Field("api_token") String str);


    /**
     * 获取商品信息
     */
    @FormUrlEncoded
    @POST("plan/getCoupons")
    Observable<BaResponse<List<Coupons>>> getCoupons(@Field("api_token") String str);

    /**
     * 获取商品信息
     */
    @FormUrlEncoded
    @POST("putOrders")
    Observable<BaResponse<String>> getCoupons2(@Field("api_token") String str,@Field("a") String a);
}


